package com.xywl.escort.view.user.register;

import com.xywl.escort.di.ActivityScoped;
import com.xywl.escort.di.FragmentScoped;
import com.xywl.escort.view.message.MessageActivity;
import com.xywl.escort.view.message.MessageContract;
import com.xywl.escort.view.message.MessagePresenter;

import dagger.Binds;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;

@Module
public abstract class RegisterModule {

    @FragmentScoped
    @ContributesAndroidInjector
    abstract RegisterActivity registerActivity();

    @ActivityScoped
    @Binds
    abstract RegisterContract.Presenter registerPresenter(RegisterPresenter presenter);
}
